import java.util.Random;
public class Card{
	String color;
	int number;
	String joker;
	Random in = new Random();
	public String setcolor()
	{
		int thecolor = in.nextInt(4) + 1;
		switch (thecolor)
		{
			case 1 : color = "spade";
				 break;
			case 2 : color = "heart";
				 break;
			case 3 : color = "club";
				 break;
			case 4 : color = "diamond";
		}
		return color;
	}
	public void setnumber()
	{
		this.number = in.nextInt(9) + 2;
		int Nonumber = in.nextInt(4)+1;
		switch (Nonumber)
		{
			case 1: this.joker = "A";
				break;
			case 2: this.joker = "J";
				break;
			case 3: this.joker = "Q";
				break;
			case 4: this.joker = "K";
		}
//		int choose = in.nextInt(2);
//		if (choose == 0)
//			getnumber();
//		else
//			getjoker();
	}

	public int getnumber(){
		setnumber();
		return number;
	}
	public String getjoker(){
		setnumber();
		
			return joker;
	 	
	}



					 
}
